define(function(require){
	return {
		homeCtl: function($scope, $ProductService, $http){
			$scope.title = "starter";
			$scope.productList = $ProductService.all();
		},
		otherCtl: function($scope){
			$scope.title = "other";		
		},
		userCtl: function($scope, $UserService){
			var getData = function(){
				$UserService.get(1).then(function(data){
					$scope.title = data[0].name;
				});	
			};

			var init = function(){
				getData();
			}();		
		}
	};
});